package com.magic.process.event;

import com.magic.dto.MeetingOperateDTO;
import com.magic.enums.MeetingEventEnum;
import com.magic.handler.MeetingHelper;
import com.magic.process.BaseMeetingEvent;
import com.magic.process.IMeetingEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class EndMeetingEvent extends BaseMeetingEvent<MeetingOperateDTO>
    implements IMeetingEvent.EndEvent<MeetingOperateDTO> {


  /**
   * @return
   */
  @Override
  public MeetingEventEnum currentEvent(MeetingOperateDTO param) {
    log.info("end currentEvent");
    return MeetingEventEnum.get(IMeetingEvent.EndEvent.class);
  }

  /**
   * @param helpers
   * @return
   */
  @Override
  public MeetingHelper[] execute(MeetingEventEnum eventEnum, MeetingHelper... helpers) {
    log.info("end execute meeting process");
    return helpers;
  }

  /**
   * @param param
   * @return
   */
  @Override
  public MeetingHelper[] preExecute(MeetingOperateDTO param) {
    log.info("end preExecute meeting process");
    return null;
  }

}
